WeDevs\Dokan\Abstracts\DokanRESTController A

Total Complexity 59
Dependencies 7
Dependents 0
Total lines 484
Lines of code 239
Logical lines of code 154
Comment lines 168
Methods 18
Properties 0

Methods 18

Method Rating Maintainability Complexity Lines of code
prepare_objects_query()
A
47 7 33
format_collection_response()
S
51 7 25
get_item()
S
58 7 12
update_item()
S
54 5 21
create_item()
S
54 5 20
prepare_items_query()
S
57 5 16
update_post_author_if_needed()
S
59 5 14
prepare_response_for_collection()
S
58 4 16
delete_item()
S
56 3 16
get_items()
S
58 2 15
get_allowed_query_vars()
S
53 1 26
add_meta_query()
S
69 2 7
get_object()
S
76 1 3
prepare_data_for_response()
S
76 1 3
validation_before_delete_item()
S
82 1 3
validation_before_create_item()
S
82 1 3
prepare_object_for_database()
S
76 1 3
validation_before_update_item()
S
82 1 3